package com.stud.system.domain;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.stud.common.annotation.Excel;
import com.stud.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 系统文件关联对象 t_file_link
 *
 * @author Stud
 * @date 2022-10-08
 */
@Schema(description = "系统文件关联")
@Data
@TableName("t_file_link")
public class FileLink extends BaseEntity {

    @Excel(name = "文件名")
    @TableField(condition = SqlCondition.LIKE)
    @Schema(description = "文件名")
    private String fileName;

    @Excel(name = "文件后缀名")
    @TableField(condition = SqlCondition.LIKE)
    @Schema(description = "文件后缀名")
    private String fileAss;

    @Excel(name = "文件类型")
    @Schema(description = "文件类型")
    private String fileType;

    @Excel(name = "文件大小")
    @Schema(description = "文件大小")
    private Long fileSize;

    @Excel(name = "OSS文件key")
    @Schema(description = "OSS文件key")
    private String fileKey;

    @Excel(name = "业务ID")
    @Schema(description = "业务ID")
    private Long businessId;

    @Excel(name = "业务类型")
    @Schema(description = "业务类型")
    private String businessType;

    @Excel(name = "过期时间")
    @Schema(description = "过期时间")
    private LocalDateTime expirationTime;

}
